﻿@model SiteManager.Models.sites
@using SiteManager.Core


<div class="sides">
@using (Html.BeginForm())
{
<fieldset>
	<legend>在下方填写信息</legend>
	<dl>
		<dt>
			<label for="Name">站点名称</label>
		</dt>
		<dd>
            @Html.TextBoxFor(m => m.Name, new { @class = "small" })
		</dd>
		<dt>
			<label for="Name_As">站点别名</label>
		</dt>
		<dd>
            @Html.TextBoxFor(m => m.Name_As, new { @class = "small" })
		</dd>
		<dt>
			<label for="PowerBy">版权所属</label>
		</dt>
		<dd>
			@Html.TextBoxFor(m => m.PowerBy, new { @class = "medium" })
		</dd>
		<dt>
			<label>使用状态</label>
		</dt>
		<dd>
            <input id="Status" name="Status" type="hidden" value="1" />
            <input name="check_status" type="radio" value="1" checked="checked" onclick="$('#Status').val(this.value)" />启用
            <input name="check_status" type="radio" value="0" onclick="$('#Status').val(this.value)" />停用
		</dd>
		<dt>
			<label>使用模板</label>
		</dt>
		<dd>
			@Html.DropDownListFor(m => m.Theme, Utils.SelectList(SelectType.Theme))
		</dd>
		<dt>
			<label>是否是主站点</label>
		</dt>
		<dd>
            <input id="ForSiteID" name="ForSiteID" type="hidden" value="0" />
            <input id="check_forsite" name="check_forsite" type="radio" value="0" checked="checked" onclick="$('#ForSiteID').val(this.value)" />是
		</dd>
		<dt>
			<label for="ExpirTime">过期时间</label>
		</dt>
		<dd>
            @Html.TextBoxFor(m => m.ExpirTime, new { @class = "medium" })
            <input id="CreateTime" name="CreateTime" type="hidden" value="@DateTime.Now.ToString("yyyy-MM-dd")" />
            <input id="Language" name="Language" type="hidden" value="zh-cn" />
		</dd>
        <dt>&nbsp;</dt>
		<dd>
            <button type="submit">添加</button>
            <button type="button" onclick="javascript: history.back();">返回</button>
		</dd>
	</dl>
</fieldset>
}
</div>